From: Dan Winship Date: Mon, 24 Jan 2011 18:25:09 +0000 (-0500) Subject: shell-app-usage: fix tracking code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9195 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4cb967f3acee4752b06ac655c0e15cfe7638273c;p=gnome-shell.git shell-app-usage: fix tracking code We were checking if the app was running, but then marking it as recently-seen either way. Fix it to only update it when the app is running. https://bugzilla.gnome.org/show_bug.cgi?id=640447 --- diff --git a/src/shell-app-usage.c b/src/shell-app-usage.c index 6126dc096..e8fe3ae8a 100644 --- a/src/shell-app-usage.c +++ b/src/shell-app-usage.c @@ -324,7 +324,8 @@ on_app_state_changed (ShellWindowTracker *tracker, running = shell_app_get_state (app) == SHELL_APP_STATE_RUNNING; - usage->last_seen = get_time (); + if (running) + usage->last_seen = get_time (); } static void